// index.js
const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'

Page({
  data:{},
  // 自定义事件处理函数
  fatherFn(e){
    console.log("父组件函数");
    console.log("子组件传给父组件的值：",e.detail);
  },
  getChild(){
    let child=this.selectComponent('.test1');
    console.log(child);
    console.log(child.data);
    child.add()
  }

})
